home *** CD-ROM | disk | FTP | other *** search
- global gCreditPage
-
- on creditPageBack
- set gCreditPage to gCreditPage - 1
- set c to the number of cast "first credits page" + gCreditPage
- put field c into field "PageCredits"
- updateStage()
- if gCreditPage = 0 then
- highlight(9)
- else
- unhighlight(9)
- end if
- if the castNum of sprite 10 = the number of cast "PageAheadGray" then
- set the castNum of sprite 10 to the castNum of sprite 10 - 2
- end if
- updateStage()
- end
-
- on creditPageAhead
- set gCreditPage to gCreditPage + 1
- set c to the number of cast "first credits page" + gCreditPage
- put field c into field "PageCredits"
- updateStage()
- if the number of cast "last credits page" = c then
- set the castNum of sprite 10 to the castNum of sprite 10 + 1
- else
- set the castNum of sprite 10 to the castNum of sprite 10 - 1
- end if
- if the castNum of sprite 9 = the number of cast "PageBackGray" then
- set the castNum of sprite 9 to the castNum of sprite 9 - 2
- end if
- updateStage()
- end
-
- on creditPageOne
- setPlace(#CREDITS, #NOCHANGE)
- set gCreditPage to 0
- put field "first credits page" into field "PageCredits"
- set the castNum of sprite 10 to the castNum of sprite 10 - 2
- updateStage()
- end
-